<template>
  <div>
    <van-swipe class="my-swipe" :autoplay="3000" indicator-color="#888888" >
      <van-swipe-item ><img src="http://121.199.51.160:8080/img/swiper/1.png" alt=""></van-swipe-item>
      <van-swipe-item ><img src="http://121.199.51.160:8080/img/swiper/3.png" alt=""></van-swipe-item>
      <van-swipe-item ><img src="http://121.199.51.160:8080/img/swiper/2.png" alt=""></van-swipe-item>
    </van-swipe>
  </div>
</template>

<script>
export default {
  data () {
    return {
      body: []
    }
  },
  created () {
    this.getSwiperList()
  },
  methods: {
    async getSwiperList () {
      const {
        data: { body }
      } = await this.$http.get('/home/swiper')
      this.body = body
    }
  }
}
</script>

<style>
.my-swipe .van-swipe-item {
  height: 200px;
  color: #fff;
  font-size: 20px;
  line-height: 150px;
  text-align: center;
}
.my-swipe img{
  width: 375px;
  height: 200px;
}
</style>
